<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="my" uri="http://www.trkj.com/tr1702/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="<c:url value="/js/jquery-easyui-1.5.5.6/jquery.min.js"/>"></script>
<script type="text/javascript" src="<c:url value="/js/jquery-easyui-1.5.5.6/jquery.easyui.min.js"/>"></script>
<script type="text/javascript" src="<c:url value="/js/jquery-easyui-1.5.5.6/locale/easyui-lang-zh_CN.js"/>"></script>
<link rel="stylesheet" type="text/css" href="<c:url value="/js/jquery-easyui-1.5.5.6/themes/default/easyui.css"/>" />
<link rel="stylesheet" type="text/css" href="<c:url value="/js/jquery-easyui-1.5.5.6/themes/icon.css"/>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

</head>
<style>
	#list_lookup{
		width:420px;
	}
</style>

<body>
<script type="text/javascript">
		$(function() {

			$("#Lzs_socialsecurity").linkbutton({
				onClick : function() {
					$('#one').panel({
						href : 'social_security',
					});
				}
			});

			
		});   
		$('.search').linkbutton({
			onClick : function() {
				$('.mod-add-data').datagrid({ url: 'lzs_socialSecuritychaxun?text='+$('#search_input').val() });//重新指定url
                alert(text)
				$('.mod-add-data').datagrid('load',{  
                });
			}
		});
		/*操作图标*/
		var sroleFormatter = function(value,row,index){
			var wrong = " <a class='cell_btn_wrong_me' onclick='wrong(" + row.securityId + ")'></a>";
			var edit="";
			 <my:g id="134">var edit = " <a class='cell_btn_edit_ue' onclick='editRole(" + row.securityId + ")'>编辑</a>";</my:g>
			var del = " <a class='cell_btn_del_re' onclick='delRole(" + row.securityId + ")'></a>";
			return wrong+edit+del;
		}
		/* 操作图标*/
 		$("#socialSecurity_lzs").datagrid({onLoadSuccess: function(){

			$(".cell_btn_edit_ue").linkbutton({iconCls:'icon-add', plain:true});
		
		}});
		/*修改*/
		
		var editRole=function(securityId){
			$('.rule_result_update_za').form('load','lzs_socialSecuritybj?securityId='+securityId);
			alert("3");
			$('#update-rule_result_oe').dialog("open");
		
		}
	</script>
		</script>
    <div id="one"  class="easyui-panel" data-options="fit:true,border:false">
	<my:g id="133">	<a href="#" id="Lzs_socialsecurity" class="easyui-linkbutton adds" data-options="iconCls:'icon-add',plain:true,text:'新增',iconAlign:'left'"></a>|</my:g> 
       <!--  <a href="#" id="update-rule_result"class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true,text:'编辑',iconAlign:'left'"></a>|  -->
        
        
    <!--     <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true,text:'删除',iconAlign:'left'"></a>|  -->
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true,text:'刷新',iconAlign:'left'"></a>| 
	<!-- 	日期从<input type= "text" class= "easyui-datebox" /> 到<input type= "text" class= "easyui-datebox" /> -->
			 <input id="search_input" class="easyui-textbox " data-options="width:120,labelWidth:30"> 
	     <a class="easyui-linkbutton search" data-options="iconCls:'icon-search',text:'搜索'"></a> 
	    
	<table  id="socialSecurity_lzs"class="easyui-datagrid mod-add-data " data-options="
		fitColumns:true,
		autoRowHeight:true,
		nowrap:false,
		rownumbers:true,
		singleSelect:true,
        url:'lzs_findAllduososocialSecurityen',
        method:'post',
		striped:true,	
		pagination:true,
		pageList:[5,10,15,20],
		pageSize:5,
		toolbar:'#tlbar'">
		<thead>
			<tr>
				<th data-options="field:'empno',width:80,checkbox:true"></th> 
				<th data-options="field:'securityId',width:80,align:'center'">社保表编号</th>
				<th data-options="field:'sblxId',width:80,align:'center'">社保类型编号</th>
				<th data-options="field:'securityName',width:80,align:'center'">社保表名称</th>
				<th data-options="field:'socialId',width:80,align:'center'">账套编号</th>
				<th data-options="field:'securityNumberEmployees',width:80,align:'center'">员工数</th>
				<th data-options="field:'securityStartdate',width:80,align:'center'">开始日期</th>
				<th data-options="field:'securityEnddate',width:120,align:'center'">结束日期</th>
				<th data-options="field:'securityRemark',width:120,align:'center'">备注</th>
					<th data-options="field:'accountStartdat',width:120,align:'center',formatter:sroleFormatter">操作</th>
	
	
			</tr>
		</thead>
		<tbody>
			<tr>
				<td>xx</td>
				<td>xx</td>
				<td>xx</td>
				<td>xx</td>
				<td>xx</td>
				<td>xx</td>
				<td>xx</td>
				<td>xx</td>
				<td>xx</td>
			</tr>
		</tbody>
	</table>
	</div>
	
	<!-- 修改 -->
	<div id="update-rule_result_oe" class="easyui-dialog" title="规则结果"
		data-options="
         width:440,
         height:360,
	     resizable:false,
	     modal:true,
	     closed:true,
	     buttons:[{
				text:'保存',
				width:60,
				handler:function(){
					$('#rule_result_update_za').form({
					    
						url:'lzs_socialSecurityxiugai',
						onSubmit:function(params){
						
						},
						success:function(v){
							v = eval('('+v +')');
							if(v.success){
								$.messager.alert('恭喜', '修改成功');
								$('#socialSecurity_lzs').datagrid('reload');
							}else{
								$.messager.alert('错误', '对不起，操作失败，原因：' + v.message);
							}
						$.messager.progress('close');// 如果提交成功则隐藏进度条
						
						$('#rule_result_add').form('reset');
						$('#update-rule_result_oe').dialog('close');
						}
					}).submit();
				}
				},{
				text:'取消',
				width:60,	
				handler:function(){
					$('#update-rule_result_oe').dialog('close');
				}
			}]
        ">
		<div style="margin-left: 21%; margin-top: 10px;">
			<form action="" class="rule_result_update_za" id="rule_result_update_za" style="text-align: right;">
				<table>
					<tr style="display:none;">
						<td><span style="color: red;">*</span>社保表编号</td>
						<td><input class="easyui-textbox"
							name="securityId" data-options="required:true" id="rule_result_id_update"></td>
					</tr>
					<tr>
						<td><span style="color: red;">*</span>社保表名称</td>
						<td><input class="easyui-textbox"
							name="securityName" data-options="required:true" id="rule_result_name_update"></td>
					</tr>
					<tr>
						<td><span style="color: red;">*</span>员工数</td>
						<td><input class="easyui-textbox"
							name="securityNumberEmployees" data-options="required:true" id="rule_result_name_update"></td>
					</tr>
						
					<tr>
						<td><span style="color: red;"> </span>开始日期</td>
						<td><input name="securityStartdate" class="easyui-datetimebox" name="securityStartdate"></td>
					</tr>
					
					<tr>
						<td><span style="color: red;"> </span>结束日期</td>
						<td><input class="easyui-datetimebox" name="securityEnddate"></td>
					</tr>
					
					
				
					<!-- <tr>
						<td><span style="color: red;"> </span>重复有效</td>
						<td>
							<select id="cfyx-value_update" class="easyui-combobox" class="cfyx"
								name="attruRepeat" style="width: 170px;" data-options="panelHeight:'auto'">
									<option value=""> </option>
									<option value="不考虑">不考虑</option>
									<option value="第一个">第一个</option>
									<option value="最后一个">最后一个</option>
							</select>
						</td>
					</tr>
					<tr>
						<td><span style="color: red">*</span>类别</td> 
						<td><select id="lb-rule_result_update" class="easyui-combobox" class="work_leibie_update"
								name="attruAffair"style="width: 170px;" data-options="panelHeight:'auto'">
									<option value="上班">上班</option>
									<option value="下班">下班</option>
									<option value="无">无</option>
							</select></td>
					</tr> -->
					
					<tr>
						<td><span style="color: red;"> </span></td>
						<td><span style="padding-right:5px;">停用</span>
						<input name="attruState" type="checkbox" value='1' id="rule_result_check_update">
					</tr>
				</table>
			</form>
		</div>
	</div> 
</body>
</html>
</body>
</html>